SelectColorCallback

public interface SelectColorCallback implements BrowserAsyncCallback<P, R>

This callback is invoked when the user clicks an <input type='color'> HTML5 element. You can use this callback to display your own color chooser dialog or set the required color programmatically without displaying any dialogs.

The Params describes the color chooser dialog params.

Use the select method to notify the browser that the color has been selected.

Use the cancel to cancel the color selection.

If the callback throws an exception, the cancel method will be invoked.

Inheritors

Types

Link copied to clipboard
public final class Action extends AsyncCallbackAction<R>
An action providing a response to the SelectColorCallback.
Link copied to clipboard
public interface Params
The parameters of the SelectColorCallback.

Functions

Link copied to clipboard
public abstract void on(P params, R tell)
Invoked when the callback needs a response for the given callback parameters.